export default {
    namespaced: true,
    state: {
        district: {
            id: "000000",
            name: "中国",
            parentId: "0",
            shortName: "全国",
            letter: "C",
            cityCode: "",
            pinyin: "China"
        },
        moveInState: 1,
        selectDate: "",
        crowdedPlace: {},
        date: '', // GIS迁徙图所用的时间
        migrateType: '', // GIS迁徙图所有的类型
        tuliType: 'yiqingClass', // GIS圖例所有的类型
        qunyiqingType:'',
    },
    mutations: {
        setDistrict(state: any, data: any) {
            state.district = data;
        },
        moveUpdate(state: any, data: any) {
            state.moveInState = data;
        },
        setgetCrowdedPlace(state: any, data: any) {
            state.crowdedPlace = data;
        },

        setSelectDate(state: any, data: any) {
            state.selectDate = data;
        },

        setDate(state: any, data: any) {
            state.date = data;
        },

        setMigrateType(state: any, data: any) {
            state.migrateType = data;
        },
        setTuliType(state: any, data: any) {
            state.tuliType = data;
        },
        setQunyiqingType(state: any, data: any) {
            state.qunyiqingType = data;
        },
    },
    actions: {
        moveUpdate(state: any, data: any) {
            state.commit('moveUpdate', data);
        },
        setSelectDate(state: any, data: any) {
            state.commit('setSelectDate', data);
        },
        setDate(state: any, data: any) {
            state.commit('setDate', data);
        },
        setMigrateType(state: any, data: any) {
            state.commit('setMigrateType', data);
        },
        setTuliType(state: any, data: any) {
            state.commit('setTuliType', data);
        },
        setQunyiqingType(state: any, data: any) {
            state.commit('setQunyiqingType', data);
        },

    },
};


